package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <desc>
 * 物业投诉、物业报修、物业通知与便民信息数据对象
 * <desc/>
 *
 * @createDate 2017-10-12
 */
@ItlTables("property_info")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class PropertyInfoPO extends BasePO  implements Serializable {

    @ItlField(value = "property_info_id",logicKey = "key")
    private String propertyInfoId; //物业内容id

    @ItlField("project_id")
    private  String projectId; //项目编号

    @ItlField("property_type")
    private  Integer propertyType; //物业信息类型，1-通知,2-便民,3-报修,4-投诉,5缴费通知'

    @ItlField("title")
    private String title; //标题

    @ItlField("property_info")
    private String propertyInfo; //内容

    @ItlField("reply_content")
    private String replyContent; //反馈

    @ItlField("img_url")
    private String imgUrl;//图片url

    @ItlField("publisher")
    private String publisher;//创建者

    @ItlField("receiver")
    private String receiver;//接收者

    @ItlField("visit_num")
    private Integer visitNum; //访问数量

    @ItlField("read_status")
    private Integer readStatus; //阅读状态，0未读，1已读

    @ItlField("url")
    private String url; //转跳详情URL

    @ItlField("fee_id")
    private String feeId; //账单id

    @ItlField("fee_update_time")
    private Date feeUpdateTime;            //账单更新时间

    @ItlField("handle_status")
    private Integer handleStatus; //处理状态，0待处理，1已处理

    /**
     * <desc>
     *     旧版APP_新增报修与投诉
     * </desc>
     * @param propertyInfoId
     * @param projectId
     * @param propertyType
     * @param propertyInfo
     * @param imgUrl
     * @param publisher
     */
    public PropertyInfoPO(String propertyInfoId,String projectId,Integer propertyType,String propertyInfo,String imgUrl,String publisher){
        this.propertyInfoId = propertyInfoId;
        this.projectId = projectId;
        this.propertyType = propertyType;
        this.propertyInfo = propertyInfo;
        this.imgUrl = imgUrl;
        this.publisher = publisher;
    }




}
